using System;
using System.Collections.Generic;
using System.ComponentModel;
//using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace OhioState.Controls
{
    public partial class DataServerConnectDialog : Form
    {
        public event Connecting connectEvent;
        public delegate void Connecting(object sender, EventArgs e);
        
        public DataServerConnectDialog()
        {
            InitializeComponent();
        }

        private void connectButtonClicked(object sender, EventArgs e)
        {
            connectEvent.Invoke(sender, e);
            this.Hide();
        }

        private void cancelButtonClicked(object sender, EventArgs e)
        {
            this.Hide();
        }

        private void formClosingHandler(object sender, FormClosingEventArgs e)
        {
            this.Hide();
        }

        public String GetText()
        {
            return textBox1.Text;
        }
    }
}